package org.rambadger.command.view.rss;

import com.google.common.collect.Lists;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;

@XmlType(name = "channel")
public class RSSChannel {
    @XmlElement(name = "title") public String title;
    @XmlElement(name = "link") public String link;
    @XmlElement(name = "description") public String description;

    @XmlElement(name = "item")
    public List<RSSItem> items = Lists.<RSSItem>newArrayList();

    public RSSChannel() {}

    public RSSChannel(String title, String link, String description, List<RSSItem> items) {
        this.title = title;
        this.link = link;
        this.description = description;
        this.items = items;
    }
}
